##parameters=role
from AccessControl import Unauthorized

user = context.REQUEST.AUTHENTICATED_USER

if not user.has_role( role ):
    raise Unauthorized, "assertRole failed"
